<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="onein" uri="http://www.onein.cn/jsp/taglib"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><c:out value="${searchword}"/> | 育儿百科 | 万应教育</title>
<jsp:include page="/WEB-INF/inc/meta.jsp"/>
<link href='<onein:url value="/styles/all.css"/>' type="text/css" rel="stylesheet" />
<script src="<onein:url value="/scripts/My97DatePicker/WdatePicker.js"/>" type="text/javascript"></script>
</head>
<body>
    <jsp:include page="/WEB-INF/inc/header.jsp"/>
    <jsp:include page="/WEB-INF/inc/menu.jsp"/>
    <div id="bodyWrap">
        <jsp:include page="/WEB-INF/inc/learnmenu.jsp"/>
        <jsp:include page="/WEB-INF/inc/learnsidebar.jsp"/> 
        <div class="rightWrap">
           <jsp:include page="/WEB-INF/inc/learnSearchForm.jsp"/>          
      <c:if test="${empty perpageVO}">
           <div class="contentBody"><br/>抱歉，没有查询到相关文章! </div>
      </c:if>            
      <c:if test="${!empty perpageVO}">
      <div>
        <div class="commonContentTopWrap2"><span><a></a></span></div>
            <div class="commonContentMidWrap2">
                <div class="searchBody">
                <div class="searchTitle">根据条件&nbsp;<span class="searchword"><c:out value="${searchword}"/></span>&nbsp;搜索到的相关文章：</div>
                <ul class="colunm1">
                    <c:forEach var="content" items="${contents}" varStatus="stat">  
                       <li><a style="color:#0F6BBA;font-size:14px;font-weight:bold;" href='<onein:url value="/learn/content/${content.id}.jhtml"/>' target='_blank'>${content.title}</a></li>
 					   <p>${content.introText}...</p>
                       <p style="padding-top:5px;padding-bottom:5px;"><b>关键字:</b>${content.tags}</p>
                       <c:if test="${!stat.last}">
                        <hr style="border:1px #cccccc dotted;"/>
                       </c:if>
                     </c:forEach>
                </ul>
                </div>
            </div>
        <div class="commonContentBottomWrap2"><span><a></a></span></div>
        <c:if test="${perpageVO.totalPages > 0}">
        <br/>
        <div class="content-page">
            <span class="page-ch">共${perpageVO.totalPages}页</span>
            <c:if test="${empty perpageVO.firstPage}">
                <span class="page-ch">上一页</span>
            </c:if>
            <c:if test="${!empty perpageVO.firstPage}">
                <a class="page-ch" href="javascript:void(0);" onclick="javascript:contentsearch(null,${perpageVO.currPage - 1});">上一页</a>
            </c:if>
            <c:forEach var = "itemPage" begin="1" end = "${perpageVO.totalPages}">
                <c:if test="${itemPage == perpageVO.currPage}" >
                    <span class="page_now">${perpageVO.currPage}</span>
                </c:if>
                <c:if test="${itemPage != perpageVO.currPage}" >
                    <a class="page-en" href="javascript:void(0);" onclick="javascript:contentsearch(null,${itemPage});">${itemPage}</a>
                </c:if>
            </c:forEach>
            <c:if test="${empty perpageVO.lastPage}">
                <span class="page-ch">下一页</span>
            </c:if>
            <c:if test="${!empty perpageVO.lastPage}">
                <a class="page-ch" href="javascript:void(0);" onclick="javascript:contentsearch(null,${perpageVO.currPage + 1});">下一页</a>
            </c:if>
        </div>
        </c:if>
    </div>
   </c:if> 
   </div>
   </div>
   <jsp:include page="/WEB-INF/inc/footer.jsp"/>
</body>
</html>